<div class="aside-left">
          <div id="accordion">
            <h3 class="head-title <?php if(strtolower($controller)=="users" ) echo 'current';?>">Thông tin người dùng</h3>
            <ul class="sub-menu " <?php if(strtolower($controller)=="users" ) echo 'style="display:block"';?>>
              <li >
                <a href="<?php echo $this->Html->url("/Users/admin_edit/".$userId); ?>">Sửa thông tin</a>
              </li>
              <li >
                <a href="<?php echo $this->Html->url("/Users/admin_index"); ?>">Danh sách người dùng</a>
              </li>
              <li >
                <a href="<?php echo $this->Html->url("/Users/admin_add"); ?>">Thêm người dùng</a>
              </li>
            </ul>
            <h3 class="head-title <?php if(strtolower($controller)=="banners" ) echo 'current';?>">
              Thông tin banner
            </h3>
            <ul class="sub-menu " <?php if(strtolower($controller)=="banners" ) echo 'style="display:block"';?>>
              <li >
                <a href="<?php echo $this->Html->url("/banners/admin_index/"); ?>">Danh sách banner</a>
              </li>
              <li >
                <a href="<?php echo $this->Html->url("/banners/admin_add"); ?>">Thêm banner</a>
              </li>
              </ul>
              <h3 class="head-title <?php if(strtolower($controller)=="introductions" ) echo 'current';?>">
                 Giới thiệu công ty
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="introductions" ) echo 'style="display:block"';?>>
                  <li >
                    <a href="<?php echo $this->Html->url("/introductions/admin_index/"); ?>">Lời giới thiệu</a>
                  </li>
                 
              </ul>
              
              <h3 class="head-title <?php if(strtolower($controller)=="products" ) echo 'current';?>"">
                 Thông tin sản phẩm
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="products" ) echo 'style="display:block"';?>>
                  <li >
                    <a href="<?php echo $this->Html->url("/products/admin_index/"); ?>">Danh sách các sản phẩm</a>
                  </li>
                  <li >
                    <a href="<?php echo $this->Html->url("/products/admin_add"); ?>">Thêm sản phẩm</a>
                  </li>
              </ul>
              <h3 class="head-title <?php if(strtolower($controller)=="typeproducts" ) echo 'current';?>"">
                 Loại sản phẩm
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="typeproducts" ) echo 'style="display:block"';?>>
               
                 <li >
                    <a href="<?php echo $this->Html->url("/TypeProducts/admin_index/"); ?>">Danh sách loại sản phẩm</a>
                  </li>
                  <li >
                    <a href="<?php echo $this->Html->url("/TypeProducts/admin_add"); ?>">Thêm loại sản phẩm</a>
                  </li>
               </ul>
            <h3 class="head-title <?php if(strtolower($controller)=="adverts" ) echo 'current';?>"">
                 Quảng cáo
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="adverts" ) echo 'style="display:block"';?>>
               
                 <li >
                    <a href="<?php echo $this->Html->url("/adverts/admin_index/"); ?>">Danh sách hình ảnh quảng cáo</a>
                  </li>
                  <li >
                    <a href="<?php echo $this->Html->url("/adverts/admin_add"); ?>">Thêm hình ảnh quảng cáo</a>
                  </li>
               </ul>
            <h3 class="head-title <?php if(strtolower($controller)=="news" ) echo 'current';?>"">
                 Tin tức
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="news" ) echo 'style="display:block"';?>>
               
                 <li >
                    <a href="<?php echo $this->Html->url("/news/admin_index/"); ?>">Danh sách tin tức</a>
                  </li>
                  <li >
                    <a href="<?php echo $this->Html->url("/news/admin_add"); ?>">Thêm tin tức</a>
                  </li>
               </ul>
              
            
          </div>
        </div>
        		<script>
$("#accordion h3.head-title").click(function()
{
    $(this).addClass("current").next("ul.sub-menu").slideToggle(300).siblings("ul.sub-menu").slideUp("slow");
	$(this).siblings().removeClass("current");
    
    if ($(this).siblings("ul.sub-menu").length == 0) {
        window.location = $(this).find("a").attr("href");
    }
});
var current_selected = $("ul.sub-menu li").each(function(){
    check_class = $(this).attr("class");
    if (check_class=="current"){
        $(this).parent().attr("id", "ul_current");
        a = $("#ul_current").prev().addClass("current");
        $(this).parent().show();
    }
});


</script> 